function [DBSN]=distanceBetweenSourceAndNeighbors(sender,neighbors,l)
    %LENGTH(X) returns the length of vector X.  It is equivalent to MAX(SIZE(X)) for non-empty arrays and 0 for empty ones.
    k = length(neighbors);
    DBSN=zeros(1,k);
    [xS,yS]=find_Coordinates(sender, l);
    for i=1:k
       neighb = neighbors(i);
       [xN, yN] = find_Coordinates(neighb, l);
       [DBSN(i)]= distance(xS,yS,xN,yN);
    end
end